package cc.mrbird.management.domain;


import cc.mrbird.common.annotation.ExportConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;

@ApiModel(value="management对象",description="管理机构对象management")
@Table(name="management_institutions")
//管理机构的名称、地址信息（省、市、区等）、联系信息等
public class ManagementInstitutions implements Serializable {
    private static final long serialVersionUID = 7780820231535870015L;
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "id")
    @ExportConfig(value = "管理机构ID")
    private Long id;
    @ApiModelProperty(value="名称",name="miName")
    @ExportConfig(value = "名称")
    @Column(name = "mi_name")
    private String miName;  //管理机构的名称
    @ApiModelProperty(value="地址信息省、市、区等",name="address")
    @ExportConfig(value = "地址")
    @Column(name = "address")
    private String address; //地址信息（省、市、区等）
    @ApiModelProperty(value="联系人",name="phoneName")
    @ExportConfig(value = "联系人")
    @Column(name = "phone_name")
    private String phoneName; //联系人
    @ApiModelProperty(value="联系电话",name="phoneTel")
    @ExportConfig(value = "联系电话")
    @Column(name = "phone_tel")
    private String phoneTel; //联系电话

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMiName() {
        return miName;
    }

    public void setMiName(String miName) {
        this.miName = miName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public String getPhoneTel() {
        return phoneTel;
    }

    public void setPhoneTel(String phoneTel) {
        this.phoneTel = phoneTel;
    }

    @Override
    public String toString() {
        return "ManagementInstitutions{" +
                "id=" + id +
                ", miName='" + miName + '\'' +
                ", address='" + address + '\'' +
                ", phoneName='" + phoneName + '\'' +
                ", phoneTel='" + phoneTel + '\'' +
                '}';
    }
    public Long getAuthCacheKey() {
        return id;
    }
}
